package com.umeox.quranplayer.db.model;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

/**
 * Created by Rambo 2022/11/29
 * Describe:
 */
@Entity(tableName = QuranAudio.TABLE_NAME)
public class QuranAudio {

    @Ignore
    public static final String TABLE_NAME = "quran_audio";
    
    // [本地歌曲]歌曲id
    @PrimaryKey
    @NonNull
    public String id;
    /**
     * 音频文件的英文昵称
     */
    public String nameEN;
    /**
     * 音频文件的阿拉伯文昵称
     */
    public String nameAR;

    // 音乐标题
    public String title;
    // 艺术家
    public String artist;
    // 专辑
    public String album;
    // [本地歌曲]专辑ID
    public long albumId;
    // [在线歌曲]专辑封面路径
    public String coverPath;
    // 持续时间
    public long duration;
    // 音乐路径
    public String path;
    // 文件名
    public String fileName;
    // 文件大小
    public long fileSize;


    @Override
    public String toString() {
        return "QuranAudio{" +
                "id='" + id + '\'' +
                ", nameEN='" + nameEN + '\'' +
                ", nameAR='" + nameAR + '\'' +
                ", title='" + title + '\'' +
                ", artist='" + artist + '\'' +
                ", album='" + album + '\'' +
                ", albumId=" + albumId +
                ", coverPath='" + coverPath + '\'' +
                ", duration=" + duration +
                ", path='" + path + '\'' +
                ", fileName='" + fileName + '\'' +
                ", fileSize=" + fileSize +
                '}';
    }
}
